Skip to main content

POST Audio Search

Overview


The following table contains important information about the POST method for retrieving audios with pagination.

POST Audio
MethodPOST
URL or Endpoint/api/v1/projectId/audios/search
ParametersprojectId
BodyCheck request body below.

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringUnique ID of the project.

Request Body

{
"page": 0,
"searchAfter": [
null
],
"folderId": 0,
"folderView": true,
"onlyReady": true,
"onlyPublishedAudios": true,
"key": "string",
"value": "string",
"author": "string",
"podcastId": "string",
"search": "string",
"order": "string",
"insertDate": "2026-02-16T13:14:35.162Z",
"take": 0
}
Parameter NameMandatoryTypeDescription
pageNointegerThe page number to retrieve in a paginated result set. Typically starts from 0.
searchAfterNoarrayAn array of values used for cursor-based pagination. Use the last value from the previous page for the next page.
folderIdNointegerID of the folder to filter audios by. Use 0 or omit for no folder filtering.
folderViewNobooleanIndicates whether the response should be filtered or formatted according to folder view.
onlyReadyNobooleanFilter to include only audios that are ready for playback or processing.
onlyPublishedAudiosNobooleanFilter to include only audios that are published and visible to users.
keyNostringCustom key used for filtering audio properties.
valueNostringValue corresponding to the key used for property filtering.
authorNostringFilter audios by the author.
podcastIdNostringID of a podcast to filter audios belonging to it.
searchNostringSearch term to filter audios by.
orderNostringSorting order for the results.
insertDateNoDateFilter audios by their insertion date.
takeNointegerThe number of audios to retrieve per request.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"currentPage": 1,
"totalPages": 8,
"pageSize": 10,
"totalCount": 72,
"searchAfter": [
1768837792185,
8284
],
"items": [
{
"title": "{title}",
"publicId": "{audioId}",
"author": "{author}",
"audioAuthor": "{audioAuthor}",
"status": "{Status}",
"publishDate": "2026-02-05T22:35:00",
"updateDate": "2026-02-05T22:35:00",
"canEmbed": true,
"thumbnail": null,
"duration": 15.072653,
"folderId": null,
"folder": null,
"progress": 0,
"estimatedFinishTime": "",
"showEncodingProgress": false,
"errorId": null,
"error": null,
"highlight": {}
}
]
},
"resultInfo": null,
"statusCode": 200
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
successboolIf the response is successful it will return true. Otherwise will return false
errorsarray[string]Indicates if there was an error
messagesarray[string]Returns the response message from back-end
resultarray[Object]Returns the response object
currentPageintegerNumber of the current page
totalPagesintegerNumber of the total page
pageSizeintegerThe size of the page
totalCountintegerNumber of the total records
searchAfterarrayAn array of values used for cursor-based pagination. Use the last value from the previous page for the next page.
itemsarray[Object]Array with records
titlestringTitle of the audio
publicIdstringUnique identifier of the audio
authorstringAuthor of the audio
audioAuthorstringAuthor of the audio content
statusstringStatus of the audio
publishDateDatePublish date of the audio
updateDateDateUpdate date of the audio
canEmbedbooleanIndicates if the audio can be embedded
thumbnailstringThumbnail of the audio
durationdoubleDuration of the audio in seconds
folderIdintegerIdentifier of the folder
folderstringFolder details
progressdoubleProgress of the audio processing
estimatedFinishTimestringEstimated finish time for processing
showEncodingProgressbooleanIndicates if encoding progress should be shown
errorIdintegerUnique identifier for the error
errorstringDescription of the error
highlightobjectHighlight information
resultInfostringReturns extra information about the result
statusCodeintegerReturns the HTTP Status Code
info

For more information about the possible errorId and error values, see Error Codes.

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed